# !/usr/bin/env python
# -*- coding: utf-8 -*-

"""
__project__ =  'tricker'
__file__    =  '__init__.py.py'
__author__  =  'king'
__time__    =  '2024/5/29 上午10:09'


                              _ooOoo_
                             o8888888o
                             88" . "88
                             (| -_- |)
                             O\  =  /O
                          ____/`---'\____
                        .'  \\|     |//  `.
                       /  \\|||  :  |||//  \
                      /  _||||| -:- |||||-  \
                      |   | \\\  -  /// |   |
                      | \_|  ''\---/''  |   |
                      \  .-\__  `-`  ___/-. /
                    ___`. .'  /--.--\  `. . __
                 ."" '<  `.___\_<|>_/___.'  >'"".
                | | :  `- \`.;`\ _ /`;.`/ - ` : | |
                \  \ `-.   \_ __\ /__ _/   .-` /  /
           ======`-.____`-.___\_____/___.-`____.-'======
                              `=---='
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                       佛祖保佑        永无BUG
"""
import click

from tricker.commands.image.tasks import ImageWorker
from tricker.common.log import LOG


@click.group(name='image', help='OpenStack Image Tools')
def group():
    pass


@group.command(name='create', help='Quick Create Image')
@click.option('-f', 'config', default=None, help='Config file')
def create():
    LOG.info("create image")
    _worker = ImageWorker()
    _worker.run()
